AppCompatCheckBox
open class AppCompatCheckBox : CheckBox, TintableCompoundButton, TintableBackgroundView, EmojiCompatConfigurationView, TintableCompoundDrawablesView(source)
A CheckBox which supports compatible features on older versions of the platform, including:
- Allows dynamic tint of its background via the background tint methods in androidx.core.widget.CompoundButtonCompat.
- Allows setting of the background tint using buttonTint and buttonTintMode.
This will automatically be used when you use CheckBox in your layouts and the top-level activity / dialog is provided by appcompat. You should only need to manually use this class when writing custom views.
Constructors
Link copied to clipboard
constructor(@NonNull context: @NonNull Context, @Nullable attrs: @Nullable AttributeSet, defStyleAttr: Int)
Functions
Link copied to clipboard
This should be accessed via getBackgroundTintList
Link copied to clipboard
This should be accessed via getBackgroundTintMode
Link copied to clipboard
This should be accessed from androidx.core.widget.CompoundButtonCompat
Link copied to clipboard
This should be accessed from androidx.core.widget.CompoundButtonCompat
Link copied to clipboard
This should be accessed via getCompoundDrawableTintList
Link copied to clipboard
This should be accessed via getCompoundDrawableTintMode Returns the blending mode used to apply the tint to the compound drawables, if specified.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setCompoundDrawables(@Nullable left: @Nullable Drawable, @Nullable top: @Nullable Drawable, @Nullable right: @Nullable Drawable, @Nullable bottom: @Nullable Drawable)
Link copied to clipboard
open fun setCompoundDrawablesRelative(@Nullable start: @Nullable Drawable, @Nullable top: @Nullable Drawable, @Nullable end: @Nullable Drawable, @Nullable bottom: @Nullable Drawable)
Link copied to clipboard
Configure emoji fallback behavior using EmojiCompat.
Link copied to clipboard
Link copied to clipboard
This should be accessed via setBackgroundTintList
Link copied to clipboard
This should be accessed via setBackgroundTintMode
Link copied to clipboard
This should be accessed from androidx.core.widget.CompoundButtonCompat
Link copied to clipboard
This should be accessed from androidx.core.widget.CompoundButtonCompat
Link copied to clipboard
This should be accessed via setCompoundDrawableTintList Applies a tint to the compound drawables.
Link copied to clipboard
This should be accessed via setCompoundDrawableTintMode Specifies the blending mode used to apply the tint specified by setSupportCompoundDrawablesTintList to the compound drawables.